<template>
  <div class="d-flex vh-100 justify-content-center align-items-center">
    <h1>欢迎,{{username}}</h1>
      <div class="text-center">
          <router-link to="/" class="text-muted">点击此处退出</router-link>
      </div>
    </div>
</template>

<script>
// @ is an alias to /src


export default {
  name: 'Home',
  data:function(){
      return{
        username:this.$store.state.user.username
      }
  }
}

</script>
